package com.gmako.service;

import java.util.List;

import com.gmako.entity.Businessimg;
import com.gmako.entity.Businessinfo;
import com.gmako.utils.Pager;


public interface BusinessinfoService {
	

	/**
	 * 添加商户信息
	 * @author Warlock
	 * @param houseInfo
	 */
	public void addBusinessInfo(Businessinfo businessinfo);
	
	/**
	 * 修改商户信息
	 * @author Warlock
	 * @param houseInfo
	 */
	
	public void updateBusinessInfo(Businessinfo businessinfo);
	/**
	 * 添加详细图片
	 * @author Warlock
	 * @param informationimage
	 * @return
	 */
	public void save(Businessimg businessimg);
	
	/**
	 * 删除详细图片
	 * @author Warlock
	 * @param informationimage
	 * @return
	 */
	public void delete(Businessimg businessimg , int id);
	
	
	/**
	 * 商家列表页，根据商家ID 查询相应套餐
	 * @author Warlock
	 * @param bid
	 * @return
	 */
	public Pager findPackInfoByBid(int pageSize, int pageNo,int bid);
	

	/**
	 * 根据商家ID  查询商家信息
	 * @author Warlock
	 * @param bid
	 * @return
	 */
	public Businessinfo findBusinessInfoByBid(int bid);
	
	/**
	 * 根据商家UID  查询商家信息
	 * @author Warlock
	 * @param bid
	 * @return
	 */
	public Businessinfo findBusinessInfoByUid(int uid);
	
	/**
	 * 根据商家类型 查询商家信息
	 * @author Warlock
	 * @param bid
	 * @return
	 */
	public  List<Businessinfo> findBusinessNameByType(Class clazz,String propertyName,Object value);
	
	/**
	 * 根据ID 查询商家图片
	 * @author Warlock
	 * @param bid
	 * @return
	 */
	public  List<Businessimg> findBusinessImgs(int bid);
	
	/**
	 * 团购
	 * @author Warlock
	 * @param bid
	 * @return
	 */
	public Pager findPagerHql(final int pageSize, final int pageNo,int type);
	
	
	
	
}
